
////////////////////////////////////////////////////////////////////////////////
//
// AnnulusTests.java
//
// Copyright (C) 2010
//
// Emory Hughes Merryman, III
// emory.merryman@gmail.com
//
// All Rights Reserved
//
// This file is part of umb28D9E.
//
// Interworks is free software: you can
// redistribute it and/or modify it under
// the terms of the GNU General Public
// License as published by the Free
// Software Foundation, either version 3
// of the License, or (at your option) any
// later version.
//
// This program is distributed in the hope
// that it will be useful, but WITHOUT
// ANY WARRANTY; without even the
// implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR
// PURPOSE.  See the GNU General Public
// License for more details.
//
// You should have received a copy of the
// GNU General Public License along with
// this program.  If not, see
// <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////

package com.superiorglobalbusiness.umb28D9E ;

/**
 * Tests the AnnulusTests.
 **/
public final class AnnulusTests
{
    private final org . jmock . Mockery context =
	new org . jmock . Mockery ( ) ;

    /**
     * Constructs a AnnulusTests test.
     **/
    public AnnulusTests ( )
    {
	super ( ) ;
    }

    /**
     * Tests the existence of a servlet class.
     *
     **/
    @ org . junit . Test
    public final
	void
	doGet ( )
    {
	final Annulus servlet = new Annulus ( ) ;
	final javax . servlet . http . HttpServletRequest request =
	    context . mock
	    ( javax . servlet . http . HttpServletRequest . class ) ;
	final javax . servlet . http . HttpServletResponse response =
	    context . mock
	    ( javax . servlet . http . HttpServletResponse . class ) ;
	final java . lang . String message = "Hello World" ;
	try
	    {
		final java . io . Writer stringWriter =
		    new java . io . StringWriter ( ) ;
		final java . io . PrintWriter printWriter =
		    new java . io . PrintWriter ( stringWriter ) ;
		final org . jmock . Expectations expectations =
		    new org . jmock . Expectations ( ) ;
		expectations .oneOf ( response ) . getWriter ( ) ;
		expectations . will
		    ( expectations . returnValue ( printWriter ) ) ;
		context . checking ( expectations ) ;
		servlet . doGet ( request , response ) ;
		printWriter . close ( ) ;
		stringWriter . close ( ) ;
		/*
		org . junit . Assert . assertEquals
		    ( message , stringWriter . toString ( ) ) ;
		*/
	    }
	catch ( final javax . servlet . ServletException cause )
	    {
		org . junit . Assume . assumeNoException ( cause ) ;
	    }
	catch ( final java . io . IOException cause )
	    {
		org . junit . Assume . assumeNoException ( cause ) ;
	    }
	context . assertIsSatisfied ( ) ;
    }
}
